/*
   (c) Copyright 2012  Tao Yu

   All rights reserved.

   Written by Tao Yu <yut616@gmail.com>

   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
   License as published by the Free Software Foundation; either
   version 2 of the License, or (at your option) any later version.

   This library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Lesser General Public License for more details.

   You should have received a copy of the GNU Lesser General Public
   License along with this library; if not, write to the
   Free Software Foundation, Inc., 59 Temple Place - Suite 330,
   Boston, MA 02111-1307, USA.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

#define __STRICT_ANSI__
#include <json/json.h>

#include "kpfs_conf.h"

kpfs_conf g_kpfs_conf;

char *kpfs_conf_get_consumer_key()
{
	return g_kpfs_conf.consumer_key;
}

char *kpfs_conf_get_consumer_secret()
{
	return g_kpfs_conf.consumer_secret;
}

char *kpfs_conf_get_root()
{
	return g_kpfs_conf.root;
}

char *kpfs_conf_get_mount_point()
{
	return g_kpfs_conf.mount_point;
}

char *kpfs_conf_get_oauth_json_file()
{
	return g_kpfs_conf.oauth_json_file;
}

char *kpfs_conf_get_writable_tmp_path()
{
	return g_kpfs_conf.writable_tmp_path;
}

kpfs_ret kpfs_conf_load(kpfs_conf loadedconf)
{
	g_kpfs_conf = loadedconf;
	return KPFS_RET_OK;
}

void kpfs_conf_dump()
{
}
